<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>视频管理</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script charset="utf-8" src="template/editor/kindeditor.js"></script>
<script charset="utf-8" src="template/editor/lang/zh_CN.js"></script>
<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_id');
        });
</script>
<script type="text/javascript" src="up/swfupload.js"></script>
<script type="text/javascript" src="up/handlers.js"></script>
<script type="text/javascript">
		var swfu;
		window.onload = function () {
			swfu = new SWFUpload({
				// Backend Settings
				upload_url: "upload_v.php",
				post_params: {"PHPSESSID": "<?php echo session_id(); ?>"},
				file_size_limit : "100 MB",	// 2MB
				file_types : "*.*",
				file_types_description : "All Files",
				file_upload_limit : 0,

				// Event Handler Settings - these functions as defined in Handlers.js
				//  The handlers are not part of SWFUpload but are part of my website and control how
				//  my website reacts to the SWFUpload events.
				swfupload_preload_handler : preLoad,
				swfupload_load_failed_handler : loadFailed,
				//file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				//upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess_n,
				//upload_complete_handler : uploadComplete,

				// Button Settings
				button_image_url : "up/SmallSpyGlassWithTransperancy_17x18.png",
				button_placeholder_id : "spanButtonPlaceholder",
				
				button_width: 180,
				button_height: 18,
				button_text : '<span class="button">上传</span>',
				button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
				button_text_top_padding: 0,
				button_text_left_padding: 18,
				button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
				button_cursor: SWFUpload.CURSOR.HAND,
				
				// Flash Settings
				flash_url : "up/swfupload.swf",
				flash9_url : "up/swfupload_FP9.swf",

				custom_settings : {
					upload_target : "divFileProgressContainer"
				},
				
				// Debug Settings
				debug: false
			});
				swfu = new SWFUpload({
				// Backend Settings
				upload_url: "upload_v.php",
				post_params: {"PHPSESSID": "<?php echo session_id(); ?>"},

				// File Upload Settings
				file_size_limit : "100 MB",	// 2MB
				file_types : "*.*",
				file_types_description : "All Files",
				file_upload_limit : 0,

				// Event Handler Settings - these functions as defined in Handlers.js
				//  The handlers are not part of SWFUpload but are part of my website and control how
				//  my website reacts to the SWFUpload events.
				swfupload_preload_handler : preLoad,
				swfupload_load_failed_handler : loadFailed,
				//file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				//upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				//upload_complete_handler : uploadComplete,

				// Button Settings
				button_image_url : "up/SmallSpyGlassWithTransperancy_17x18.png",
			
					button_placeholder_id : "spanButtonPlaceholders",
				button_width: 180,
				button_height: 18,
				button_text : '<span class="button">上传</span>',
				button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
				button_text_top_padding: 0,
				button_text_left_padding: 18,
				button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
				button_cursor: SWFUpload.CURSOR.HAND,
				
				// Flash Settings
				flash_url : "up/swfupload.swf",
				flash9_url : "up/swfupload_FP9.swf",

				custom_settings : {
					upload_target : "divFileProgressContainer"
				},
				
				// Debug Settings
				debug: false
			});
		};
	</script>
<style type="text/css">
body{margin:20px;}
</style>
</head>

<body>
<div class="div_out">
 <div class="position"><h2>当前位置 >更新视频</h2></div>
</div><!--导航-->
<form name="maininfo" method="post" action="?action=updatevideo" class="form">
<div class="div_out" id="tb">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">视频名称:</td><td class="w2">
          <input type="text" name="video_name" value="<?php echo $rel[0]['video_name'];?>" style="margin:0 5px;"/>
          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">讲师:</td><td class="w2">
          <input type="text" name="author"  value="<?php echo $rel[0]['author'];?>" style="margin:0 5px;"/>
          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">视频时长:</td><td class="w2">
          <input type="text" name="video_time"  value="<?php echo $rel[0]['video_time'];?>" style="margin:0 5px;"/>*小时
          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">学期:</td><td class="w2">
          <input type="text" name="video_days" value="<?php echo $rel[0]['video_days'];?>"  style="margin:0 5px;"/>*天
          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">适合:</td><td class="w2">
          <textarea name="video_shihe" rows="4" cols="60"><?php echo $rel[0]['video_shihe'];?></textarea>
          </td><td class="w3"></td>
		</tr>

		<tr>
		  <td class="w1">视频封面:</td><td class="w3"><input id="indexpic" style="width:30%;" value="<?php echo $rel[0]['pic'];?>"  name="pic"><input type="button" onclick="window.open('admin_pic_upload.php?type=radio&amp;get=indexpic','图片上传','width=800,height=800');" value="上传图片" name="button" style="margin-left:5px;"><span id="show_indexpic"><a href="../upload/" target="_blank"><img width="50" height="50" border="0" style="border:1px solid #ccc" src="<?php echo $rel[0]['pic'];?>" "></a></span></td>
		</tr>

		
        <tr>
		  <td class="w1">试听URL:</td><td class="w2">
          <input type="text" name="video_nurl"  id="video_nurl"  value="<?php echo $rel[0]['video_nurl'];?>"  style="margin:0 5px;" /><span id="spanButtonPlaceholder"></span>
         
          </td><td class="w3"></td>
		</tr>
        <tr>
		  <td class="w1">收费URL:</td><td class="w2">
          <input type="text" name="video_yurl" id="video_yurl" value="<?php echo $rel[0]['video_yurl'];?>"  style="margin:0 5px;"/><span id="spanButtonPlaceholders"></span>
         
          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">视频内容:</td><td class="w2">
          <textarea id="editor_id" name="video_content" style="width:700px;height:300px;"><?php echo $rel[0]['video_content'];?></textarea>

          </td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">视频价格:</td><td class="w2">
        
         <input type="text" name="video_price" value="<?php echo $rel[0]['video_price'];?>"  style="margin:0 5px;"/> 注：未填写表示免费
        </td><td class="w3"></td>
		</tr>
       	<tr>
		  <td class="w1">是否推荐到首页</td><td class="w2">
        
         <input type="checkbox" name="index" style="margin:0 5px;" value='1'  <?php if ($rel[0]['index']) echo "checked";?>/> 是
        </td><td class="w3"></td>
		</tr>
        
	</tbody>
 </table>
 </div>
 <div class="btn" style="margin-top:10px">
<input type="hidden" name="video_id" value="<?php echo $rel[0]['video_id'];?>" />
  <input type="submit" value="确定" class="go" name="submit"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 </div>
</form>
</body>
</html>
